package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

@Component
@DisconfFile(targetDirPath = "disconf", filename = "gongxinbao.properties")
public class GongXinBaoProperties {

    private String rawdataUrl;
    private String reportUrl;
    private String tokenUrl;
    private String appId;
    private String appSecurity;

    private String returnUrl;
    private String authorizedUrl;
    private String zhimaScoreUrl;


    @DisconfFileItem(name = "gongxinbao.zhimaScoreUrl", associateField = "zhimaScoreUrl")
    public String getZhimaScoreUrl() {
        return zhimaScoreUrl;
    }

    public void setZhimaScoreUrl(String zhimaScoreUrl) {
        this.zhimaScoreUrl = zhimaScoreUrl;
    }

    @DisconfFileItem(name = "gongxinbao.authorizedUrl", associateField = "authorizedUrl")
    public String getAuthorizedUrl() {
        return authorizedUrl;
    }

    public void setAuthorizedUrl(String authorizedUrl) {
        this.authorizedUrl = authorizedUrl;
    }

    @DisconfFileItem(name = "gongxinbao.returnUrl", associateField = "returnUrl")
    public String getReturnUrl() {
        return returnUrl;
    }

    public void setReturnUrl(String returnUrl) {
        this.returnUrl = returnUrl;
    }

    @DisconfFileItem(name = "gongxinbao.tokenUrl", associateField = "tokenUrl")
    public String getTokenUrl() {
        return tokenUrl;
    }

    public void setTokenUrl(String tokenUrl) {
        this.tokenUrl = tokenUrl;
    }

    @DisconfFileItem(name = "gongxinbao.rawdataUrl", associateField = "rawdataUrl")
    public String getRawdataUrl() {
        return rawdataUrl;
    }

    public void setRawdataUrl(String rawdataUrl) {
        this.rawdataUrl = rawdataUrl;
    }

    @DisconfFileItem(name = "gongxinbao.reportUrl", associateField = "reportUrl")
    public String getReportUrl() {
        return reportUrl;
    }

    public void setReportUrl(String reportUrl) {
        this.reportUrl = reportUrl;
    }

    @DisconfFileItem(name = "gongxinbao.appId", associateField = "appId")
    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    @DisconfFileItem(name = "gongxinbao.appSecurity", associateField = "appSecurity")
    public String getAppSecurity() {
        return appSecurity;
    }

    public void setAppSecurity(String appSecurity) {
        this.appSecurity = appSecurity;
    }
}
